package com.example.dubbo.api.dubbo;

import com.example.dubbo.api.dto.CommodityDTO;
import com.example.dubbo.api.response.ObjectResponse;

/**
 * The interface Storage service.
 * @author Liyuhang
 */
public interface StorageService {

    /**
     * 扣减库存
     *
     * @param commodityDTO 商品
     * @return  ObjectResponse
     */
    ObjectResponse deduct(CommodityDTO commodityDTO);
}
